import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    bets: false,
    extract: false,
    hasMoney: false,
    noMoney: false
  },
  mutations: {
    openBets (state) {
      state.bets = true
    },
    closeBets (state) {
      state.bets = false
    },
    openExtract (state) {
      state.extract = true
    },
    closeExtract (state) {
      state.extract = false
    },
    openHasMoney (state) {
      state.hasMoney = true
    },
    closeHasMoney (state) {
      state.hasMoney = false
    },
    openNoMoney (state) {
      state.noMoney = true
    },
    closeNoMoney (state) {
      state.noMoney = false
    }
  }
})
export default store
